package com.google.inject;

public class GuiceUtil {

	static public Injector getInjector(Binder impl) {
		return ((BinderImpl) impl).injector;
	}

	@SuppressWarnings("unchecked")
	static public void bindInternalFactory(Binder impl, Key<?> key,
			InternalFactoryPublic factory) {
		((BinderImpl) impl).bind(key).to(factory);
	}
}
